﻿<!DOCTYPE html>
<html lang="en">
<#include "../common/common-head.html"/>
<body class="gray-bg top-navigation">
<div id="wrapper">
    <div id="page-wrapper" class="gray-bg">
    <#include "../common/common-menu.html">
        <div class="wrapper wrapper-content">
            <div class="row white-bg" style="padding: 18px 0">
                <div class="col-xs-12">
                    <div class="form-search">
                        <form role="form" class="form-inline clearfix" id="form" action="">
                            <@search labels=["真实姓名","登录名"] names=["name","username"] isEnd=true></@search>
                        </form>
                        <div class="form-tool btn-group">
                            <a class="btn btn-primary" href="/user/add">添加</a>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover">
                            <thead>
                            <tr>
                                <@tableHead names=["真实姓名","登录名","电子邮箱","手机号","状态","操作"]></@tableHead>
                            </tr>
                            </thead>
                            <tbody>
                            <#list pageInfo.list as item>
                            <tr>
                                <@tableBody model=item propMap={"name":"","username":"","email":"","phone":""}></@tableBody>
                                <td>${item.status?switch(0,"禁用","正常")}</td>
                                <td>
                                    <a href="${basePath}/user/detail/${item.id}">修改用户</a>
                                    <a href="#" onclick="if(confirm('确定删除吗？')){location.href='${basePath}/user/del/${item.id}'}">删除居民</a>
                                </td>
                            </tr>
                            </#list>
                            </tbody>
                        </table>
                    <#include "../common/table-page.html"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

